
package com.ly.credit.service;


import com.ly.credit.dao.UserApiDao;
import com.ly.credit.entity.UserApi;
import com.ly.credit.util.AdResult;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service("userApiService")
@Transactional
public class UserApiServiceImpl implements UserApiService {
	@Resource
	private UserApiDao userApiDao;

	@Transactional
	public AdResult getUserApi(String userId){

		AdResult result = new AdResult();
		List<UserApi> userApiList = userApiDao.getUserApi(userId);
		result.setStatus(1);
		result.setData(userApiList);
		result.setMsg("获取成功!");
		return result;

	}
}